<?php

include_once "function_draw_image.php";
include_once "function_log_pub.php";

function DrawUserTopTen()
{
	$list = GetUserTopTne();
	//print_r($list);
	$i = 0;
	$a = array(0,0,0,0,0,0,0,0,0,0);
	$t = array(0,0,0,0,0,0,0,0,0,0);
	$title = "User Top 10";
	foreach ($list as $l )
	{
		$t[$i] = key($list);
		$a[$i] = current($list);
		$i ++;
		next($list);
	}

	DrawTopTen($a, $t, $title);
}
DrawUserTopTen();

?>
